<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>互联网村镇管理平台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/main.css}"/>
    <div th:include="admin/common/common"></div>
    <script type="text/javascript" charset="utf-8" th:src="@{/js/libs/ckeditor/ckeditor.js}"></script>
    <script type="text/javascript" th:src="@{/js/libs/ajaxfileupload.js}"></script>
    <script type="text/javascript" th:src="@{/js/web/labour/labour.js}"></script>
</head>
<body>
<div class="container clearfix">
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font">&#xe922;</i>
                <a href="javascript:void(0);">信息发布</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">修改劳务</span>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form id="editLabourForm" onsubmit="return excuteEditLabour();">
                	<input type="hidden" name="labourId" id="labourId"  th:value="${labour.labourId}">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>劳务名称：
                            </th>
                            <td>
                                <input class="common-text required" id="labourName" name="labourName" th:value="${labour.labourName}" style="width:99%" maxlength="50" type="text"/>
                            </td>
                        </tr>
                        <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>公司名称：
                            </th>
                            <td>
                                <input class="common-text required" id="companyName" name="companyName" th:value="${labour.companyName}" style="width:99%" maxlength="50" type="text"/>
                            </td>
                        </tr>
                        <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>工作描述：
                            </th>
                            <td>
                                <textarea id="oldContent" style="display: none;" th:text="${labour?.labourDesc}"></textarea>
                                <textarea name="content_editor" id="content_editor" rows="10" cols="80">
					            </textarea>
                               <script>
                                    CKEDITOR.replace('content_editor', {allowedContent:true, filebrowserImageUploadUrl: shiro.baseUrl + "uploadCKEditor",
                                    	toolbar : 'Full',
							            filebrowserFlashUploadUrl :shiro.baseUrl+"uploadVideo"})
                                </script>
                            </td>
                        </tr>
                         <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>工作地址：
                            </th>
                            <td>
                                <input class="common-text required" id="workAddress" name="workAddress" th:value="${labour.workAddress}" style="width:99%" maxlength="50" type="text"/>
                            </td>
                        </tr>
                        <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>学历要求：
                            </th>
                            <td>
                            	<select class="common-text required"  name="labourEducation" id="labourEducation"   style="width: 200px;height: 30px">
                            		<option value="">--请选择--</option>
                            		<option value="1" th:selected="${labour.labourEducation == 1}">高中</option>
                            		<option value="2" th:selected="${labour.labourEducation == 2}">大专</option>
                            		<option value="3" th:selected="${labour.labourEducation == 3}">本科</option>
                            		<option value="4" th:selected="${labour.labourEducation == 4}">研究生</option>
                            		<option value="5" th:selected="${labour.labourEducation == 5}">博士生</option>
                            		<option value="6" th:selected="${labour.labourEducation == 6}">硕士生</option>
                            	</select>
                            </td>
                        </tr>
                        <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>工作经验：
                            </th>
                            <td>
                                <input class="common-text required" id="labourMinYear" name="labourMinYear"  th:value="${labour.labourMinYear}"  style="width:20%" maxlength="128" type="text"/> 年
                                ~~~~~
                                <input class="common-text required" id="labourMaxYear" name="labourMaxYear" th:value="${labour.labourMaxYear}"   style="width:20%" maxlength="128" type="text"/> 年
                            </td>
                        </tr>
                        <tr>
                            <th style="width:10%;">
                                <i class="require-red">*</i>薪资待遇：
                            </th>
                            <td>
                                <input class="common-text required" id="labourMinPrice" name="labourMinPrice" th:value="${labour.labourMinPrice}" style="width:20%" maxlength="128" type="text"/> 元
                                ~~~~~
                                <input class="common-text required" id="labourMaxPrice" name="labourMaxPrice" th:value="${labour.labourMaxPrice}" style="width:20%" maxlength="128" type="text"/> 元
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="提交" type="submit"/>
                                <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"/>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    CKEDITOR.instances.content_editor.setData($('#oldContent').val());
</script>
</body>
</html>